how to execute multiple function parallely